package io.renren.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 消息通知
 *
 * @author liuyujun 384880231@qq.com
 * @since 3.0 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_message")
public class MessageEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 分类
     */
    private Integer category;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 已读
     */
    private Boolean read;
    /**
     * 金额
     */
    private Double money;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    /**
     * 逻辑删除
     */
    private Boolean logicalDelete;
}